package com.gopay.common.domain.bank.boc.bcdl.person.res;

import java.io.Serializable;
import java.util.List;

import com.gopay.common.domain.bank.boc.bcdl.BaseBody;
import com.gopay.common.domain.bank.boc.bcdl.ResResultStatus;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("bocb2e")
public class TransResPersonBody extends BaseBody {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7143531782126906193L;
	
	@XStreamAlias("trans")
	private List<Inner> trans;
	
	public List<Inner> getTrans() {
		return trans;
	}

	public void setTrans(List<Inner> trans) {
		this.trans = trans;
	}

	@XStreamAlias("trn-b2e0061-rs")
	public static class Inner implements Serializable{
		
		/**
		 * 
		 */
		private static final long serialVersionUID = 1980169525417119968L;

		@XStreamAlias("status")
		private ResResultStatus status;
		
		@XStreamImplicit(itemFieldName="b2e0061-rs")
		private List<TransResPerson> persons;
		
		public ResResultStatus getStatus() {
			return status;
		}
		public void setStatus(ResResultStatus status) {
			this.status = status;
		}
		public List<TransResPerson> getPersons() {
			return persons;
		}
		public void setPersons(List<TransResPerson> persons) {
			this.persons = persons;
		}
	}
}
